﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteIntranet.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    RegistrarPropiedad
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    
    <script src="<%: Url.Content("~/Scripts/Validaciones.js") %>" type="text/javascript"></script>
    <link href="<%: Url.Content("~/Content/jquery-ui.css") %>" rel="stylesheet" type="text/css" />    
    <link href="<%: Url.Content("~/Content/jquery.ui.timepicker.css") %>" rel="stylesheet" type="text/css" />
    <link href="<%: Url.Content("~/Content/jPages.css") %>" rel="stylesheet" type="text/css" />
   
    <script src="<%: Url.Content("~/Scripts/jPages.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery.ui.timepicker.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/Propiedad.js") %>" type="text/javascript"></script>


    <div id="Registrar">
            <h2>Registrar Propiedad en Venta</h2>

            <label class="dialogoError" style="color:Red">Los campos con (*) son obligatorios</label>
            <br /><br /><br />
            <label>Dirección: (*)</label>
            <input type="text" id="Direccion" class="text ui-widget-content ui-corner-all"/>
            <br/><br/>
            <label>Precio base: (*)</label>
            <input type="text" id="PrecioBase"   maxlength="12" class="text ui-widget-content ui-corner-all" onkeypress="return permite(this,event, 'num',true)" />
            <br/><br/>
            <label>Comision de la Empresa: %(*)</label>
            <input type="text" id="Comision" maxlength="2" class="text ui-widget-content ui-corner-all"  onkeypress="return permite(this,event, 'num',true)" />
            <br/><br/>
            <label>Area Total: (*)</label>
            <input type="text" id="AreaTotal" maxlength="6" class="text ui-widget-content ui-corner-all"  onkeypress="return permite(this,event, 'num',true)" />
            <br/><br/>
            <label>Estado: (*)</label>
            <select id="EstadoSelect" class="text ui-widget-content ui-corner-all">
                    <option>EN VENTA</option>
                    <option>SOLO REGISTRADO</option>
            </select>

            <br/><br/>
            <label>Fecha de Registro: (*)</label>
            <input type="text" id="FechaRegistro"  readonly="readonly"  class="text ui-widget-content ui-corner-all" />
            <br/><br/>
            <label>Area Construida: (*)</label>
            <input type="text" id="AreaConstruida" class="text ui-widget-content ui-corner-all"  onkeypress="return digits(this, event, true, true);"/>
            <br/><br/>

            <label>Departamento: (*)</label>
            <select id="RegSctDepartamento" onchange="cargarProvinciasRegistrar()"  class="text ui-widget-content ui-corner-all"></select>
            <br></br>

            <label>Provincia: (*)</label>
            <select id="RegSctProvincia" onchange="cargarDistritosRegistrar()"  class="text ui-widget-content ui-corner-all"></select>
            <br></br>

            <label>Distrito: (*)</label>
            <select id="RegSctDistrito"  class="text ui-widget-content ui-corner-all"></select>
            <br></br>
            <label>Rango: (*)</label>
            <input type="text" id="Rango" class="text ui-widget-content ui-corner-all"  onkeypress="return permite(event, 'num')"/>
            <br/><br/>
            <label>Id Dueño: </label>
            <input type="text" id="RegTbxIdPersonaV" class="text ui-widget-content ui-corner-all"  onkeypress="return permite(event, 'num')"/>
            <input type="text" id="RegTbxIdPersona" class="text ui-widget-content ui-corner-all"  onkeypress="return permite(event, 'num')"/>
            <button id="buscarPersonaR">buscar</button>  
            <label class="errorLabel" id="Label1"></label>            <br/><br/>
            <label>Nro. Dormitorios: (*)</label>
            <input type="text" id="NroDormitorios" class="text ui-widget-content ui-corner-all" onkeypress="return permite(event, 'num')"/>
            <br/><br/>
            <label>Tipo de Inmueble: (*)</label>
            <input type="text" id="TipoInmueble" class="text ui-widget-content ui-corner-all"  onkeypress="return permite(event, 'num')"/>

            <select id="InmuebleSelect" class="text ui-widget-content ui-corner-all">
                    <option>DEPARTAMENTO</option>
                    <option>CASA</option>
                    <option>CASA DE PLAYA</option>
            </select>

            <br/><br/>
            <label>Nro. Baños: (*)</label>
            <input type="text" id="NroBanos" class="text ui-widget-content ui-corner-all"  onkeypress="return permite(event, 'num')"/>
            <br/><br/>
            <label>IdVendedor: (*)</label>
            <input type="text" id="RegTbxIdVendedorV" class="text ui-widget-content ui-corner-all"  onkeypress="return permite(event, 'num')"/>
            <input type="text" id="RegTbxIdVendedor" class="text ui-widget-content ui-corner-all"  onkeypress="return permite(event, 'num')"/>
            <button id="buscarVendedorR">buscar</button>  
            <label class="errorLabel" id="Label2"></label>
            <br/><br/>

            <label>Descripcion:  </label>
            <textarea id="Descripcion" maxlength="250" rows="5" cols="45" class="text ui-widget-content ui-corner-all"></textarea>
            
            <br/><br/>
            <br/><br/>
            <br/><br/>
            <br/><br/>
            <center>
            &nbsp;<input type="submit" id="botonRegistro" value="Registrar" class="submit-button" style="margin-left:auto; width:auto;"/><input type="submit" id="botonCancelar" value="Cancelar" class="submit-button" style="margin-left:5px; margin-right:auto; width:auto;"/>
            </center>
            <br/><br/>
            <br/><br/>



            <div id="dialog-formRegPers" title="BUSCAR PERSONA">
               <p class="validateTips">Por favor ingrese los campos que usted cree necesarios.</p>

               <fieldset>
                   <label for="name">Nombre :</label>
                   <input type="text" name="name" id="nombre_persona" class="text ui-widget-content ui-corner-all" /><br/><br/>
                   <label for="name">Apellido :</label>
                   <input type="text" name="name" id="apellido_persona" class="text ui-widget-content ui-corner-all" /><br/><br/>

                   <input type="submit" id="botonBuscarPersonaR" value="Buscar" class="submit-button" style="margin-left:350px; width:auto;"/>
                   <input type="submit" id="botonCancelarPersonaR" value="Cancelar" class="submit-button" style="margin-left:5px; margin-right:auto; width:auto;"/>
               </fieldset>
               <div id="Div3" class="ui-widget" align="center">
                    <div id = "tablaDinamicaPersona"></div>
                    <div class="holder" id="holderRPPer" align="center"></div>
        <%--            <div style="border: 0px;" id="NavPosicionBPers"></div>--%>
               </div>
            </div>

            <div id="dialog-formRegVend" title="BUSCAR VENDEDOR">
               <p class="validateTips">Por favor ingrese los campos que usted cree necesarios.</p>

               <fieldset>
                   <label for="name">Nombre :</label>
                   <input type="text" name="name" id="nombre_vendedor" class="text ui-widget-content ui-corner-all" /><br/><br/>
                   <label for="name">Apellido :</label>
                   <input type="text" name="name" id="apellido_vendedor" class="text ui-widget-content ui-corner-all" /><br/><br/>

                   <input type="submit" id="botonBuscarVendedorR" value="Buscar" class="submit-button" style="margin-left:350px; width:auto;"/>
                   <input type="submit" id="botonCancelarVendedorR" value="Cancelar" class="submit-button" style="margin-left:5px; margin-right:auto; width:auto;"/>
               </fieldset>
               <div id="Div2" class="ui-widget" align="center">
                    <div id = "tablaDinamicaVendedor"></div>
                    <div class="holder" id="holderRPVen" align="center"></div>
        <%--            <div style="border: 0px;" id="NavPosicionBVend"></div>--%>
               </div>
            </div>



    </div>

    <div id="Modificar"></div>
    <div id="Eliminar"></div>
    <div id="Buscar"></div>


</asp:Content>
